[
    // 植物库
    {
      path: '/plantlib',
      component: 'layout',
      name: 'plantlib',
      meta: { title: '植物库', icon: 'el-icon-s-help' },
      redirect: '/plantlib/list',
      children: [{
        path: 'list',
        name: 'plantIndex',
        component: 'plantIndex',
        meta: { title: '植物列表' }
      }, {
        path: 'add',
        name: 'plantAdd',
        component: 'plantAdd',
        meta: { title: '新增植物' },
        hidden: true
      }, {
        path: 'list/:id',
        name: 'plantDetail',
        component: 'plantDetail',
        meta: { title: '植物详情' },
        hidden: true
      }, {
        path: 'identify',
        name: 'identify',
        component: 'identify',
        meta: { title: '植物识别基础' }
      }, {
        path: 'skill',
        name: 'skill',
        component: 'skill',
        meta: { title: '辅助野外生存的植物知识与技巧' }
      }]
    },
    // 习题库
    {
      path: '/question',
      component: 'layout',
      name: 'question',
      meta: { title: '习题库', icon: 'el-icon-s-help' },
      children: [
        {
          path: 'list',
          name: 'questionList',
          component: 'questionList',
          meta: { title: '习题库' }
        },
        {
          path: 'detail/:id',
          name: 'questionDetail',
          component: 'questionDetail',
          meta: { title: '习题' },
          hidden: true
        }
      ]
    },
    // 留言
    {
      path: '/message',
      component: Layout,
      name: 'message',
      redirect: '/message/list',
      meta: { title: '留言板', icon: 'el-icon-s-help' },
      children: [
        {
          path: 'list',
          name: 'messageList',
          component: 'messageList',
          meta: { title: '留言板', activeMenu: '/message' },
        },
        {
          path: 'detail/:id',
          name: 'messageDetail',
          component: 'messageDetail',
          meta: { title: '留言详情', activeMenu: '/message/list' },
          hidden: true
        },
        {
          path: 'create',
          name: 'messageCreate',
          component: 'messageCreate',
          meta: { title: '新增留言' },
          hidden: true
        },
        {
          path: 'reply',
          name: 'messageReply',
          component: 'messageReply',
          meta: { title: '留言回复' },
          hidden: true
        }
      ]
    },
    // 系统管理
    {
      path: '/system',
      component: 'layout',
      name: 'system',
      meta: { title: '系统管理', icon: 'el-icon-s-help' },
      children: [
        {
          path: 'account',
          name: 'systemAccount',
          component: 'systemAccount',
          meta: { title: '账号管理' }
        },
        {
          path: 'role',
          name: 'systemRole',
          component: 'systemRole',
          meta: { title: '角色管理' }
        },
        {
          path: 'information',
          name: 'systemInformation',
          component: 'systemInformation',
          meta: { title: '展示信息' }
        }
      ]
    },
    // 404 page must be placed at the end !!!
    { path: '*', redirect: '/404', hidden: true }
  ]